package com.jwater.core.manager.common.model;

import java.io.Serializable;

import com.jwater.core.common.param.ParamMap;
import com.jwater.core.common.param.ParamMapImpl;

/**
 * @description: 定时任务信息
 * @author: jnner
 * @createDate: 2021/2/5
 * @version: 1.0
 */
public class JobInfo implements Serializable {
    private static final long serialVersionUID = -444529687562224593L;
    private int sn;
    private String regionName;
    private String deployName;
    private String groupName;
    private String cron;
    private String groupDesc;
    private String jobName;
    private String className;
    private String jobDesc;
    private ParamMap infoProps = new ParamMapImpl();
    private ParamMap props = new ParamMapImpl();
    private long time;
    private boolean run;
    private String host;
    private String homePath;
    private long uptime;
    private long lastRunTime;

    public String getHomePath() {
        return homePath;
    }

    public void setHomePath(String homePath) {
        this.homePath = homePath;
    }

    public int getSn() {
        return sn;
    }

    public void setSn(int sn) {
        this.sn = sn;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getDeployName() {
        return deployName;
    }

    public void setDeployName(String deployName) {
        this.deployName = deployName;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public String getGroupDesc() {
        return groupDesc;
    }

    public void setGroupDesc(String groupDesc) {
        this.groupDesc = groupDesc;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getJobDesc() {
        return jobDesc;
    }

    public void setJobDesc(String jobDesc) {
        this.jobDesc = jobDesc;
    }

    public ParamMap getInfoProps() {
        return infoProps;
    }

    public void setInfoProps(ParamMap infoProps) {
        this.infoProps = infoProps;
    }

    public ParamMap getProps() {
        return props;
    }

    public void setProps(ParamMap props) {
        this.props = props;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public boolean isRun() {
        return run;
    }

    public void setRun(boolean run) {
        this.run = run;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public long getUptime() {
        return uptime;
    }

    public void setUptime(long uptime) {
        this.uptime = uptime;
    }

    public long getLastRunTime() {
        return lastRunTime;
    }

    public void setLastRunTime(long lastRunTime) {
        this.lastRunTime = lastRunTime;
    }

    @Override
    public String toString() {
        return "JobInfo [groupName=" + groupName + ", cron=" + cron + ", groupDesc=" + groupDesc + ", jobName="
                + jobName + ", className=" + className + ", jobDesc=" + jobDesc + "]";
    }
}
